package com.jhl.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jhl.seckill.entity.Order;
import com.jhl.seckill.entity.User;
import com.jhl.seckill.vo.GoodsVo;
import com.jhl.seckill.vo.OrderDetailVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author JHL
 * @since 2022-04-28
 */
public interface OrderService extends IService<Order> {
    Order seckill(User user, GoodsVo goodsVo);

    String createPath(User user, Long goodsId);

    boolean checkPath(User user, Long goodsId, String path);

    boolean checkCaptcha(User user, Long goodsId, String captcha);

    OrderDetailVo detail(Long orderId);
}
